import request from '@/utils/request'

export function getEmployee() {
  return request({
    url: '/sys/user/simple'
  })
}
export function getfullEmployee(params) {
  return request({
    url: '/sys/user',
    params
  })
}
export function removeEmployee(id) {
  return request({
    url: '/sys/user/' + id,
    method: 'delete'
  })
}
export function addEmployee(data) {
  return request({
    url: '/sys/user/',
    method: 'post',
    data
  })
}
export function importEmployee(data) {
  return request({
    url: '/sys/user/batch',
    method: 'post',
    data
  })
}
export function updataEmployee(data) {
  return request({
    url: '/sys/user/' + data.id,
    method: 'put',
    data
  })
}
export function assignRoles(data) {
  return request({
    url: '/sys/user/assignRoles',
    method: 'put',
    data
  })
}
